import {SEVER_URL_MENBER} from './serverConfig'

const apiUrlMenber = {
  /**
   * 合伙人模块
   */
  //合伙人判断
  'partner_is_bought': '/partner/is-partner',
  // 加载合伙人信息
  'partner_load_info': '/partner/partner-info',
  // 绑定合伙人上线id
  'partner_bind_id': '/partner/partner-binding',
  // 绑定订单上线id
  'partner_order_bind': '/partner/partner-buy',

  /**
   * 素材
   */
  //获取邀请合伙人列表
  'load_interview_list': '/homepage/interview/interview-list',
  //获取邀请合伙人信息
  'load_interview_record': '/homepage/interview/interview-record/:interviewId',
  //获取课程推广列表
  'load_goods_promotion_list': '/partner/column/second/list',
  //获取课程推广信息
  'load_goods_promotion_record': '/partner/column/second/record/:siId',

  /**
   * 活动
   */
   // 绑定活动上线id
   'activities_bind_id': '/activity/pay/success'
  //  //活动课程判断
  //  'activities_is_bought': '/activity/course/is-buy'
}

export const getUrl = (urlPath, server = SEVER_URL_MENBER, urlMap = apiUrlMenber) => server + urlMap[urlPath]
